import {request} from "../../request";

export function getOrdersById(id){
    return request({
        url:`/lswms/orders/${id}`,
        method:'get'
    })
}


export function getOrdersPage(data){
    return request({
        url:'/lswms/orders/page',
        method:'put',
        data:data
    })
}

export function putOrders(data){
    return request({
        url:'/lswms/orders',
        method:'put',
        data:data
    })
}
export function postOrders(data){
    return request({
        url:'/lswms/orders',
        method:'post',
        data:data
    })
}

export function deleteOrders(data){
    return request({
        url:`/lswms/orders`,
        method:'delete',
        data:data
    })
}
export function exportOrders(data){
    return request({
        url:`/lswms/orders/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
// 分配
export function putAllocation(data){
    return request({
        url:'/lswms/orders/allocation',
        method:'put',
        data:data
    })
}

// 发放
export function putRelease(data){
    return request({
        url:'/lswms/orders/release',
        method:'put',
        data:data
    })
}

// 发货
export function putDelivery(data){
    return request({
        url:'/lswms/orders/delivery',
        method:'put',
        data:data
    })
	}
// 关单
export function putClose(data){
    return request({
        url:'/lswms/orders/close',
        method:'put',
        data:data
    })	
}

export function postQcCreate(data){
    return request({
        url:'/lswms/orders/qcCreate',
        method:'post',
        data:data
    })
}

export function orderEmptyLPN(data){
	return request({
	    url:'/lswms/orders/orderEmptyLPN',
	    method:'post',
	    data:data
	})
}